// pages/activety/index.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        bannerList: [
            { "url": 'http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1622612560102297.png' },
            { "url": "http://feiyangimage.oss-cn-shanghai.aliyuncs.com/item/1622683525450356.png" }
        ],
        // couponList:["http://img0.baidu.com/it/u=3924905353,1832758127&fm=253&app=138&f=JPEG?w=750&h=291","http://img2.baidu.com/it/u=1822397536,372551330&fm=253&app=138&f=JPEG?w=500&h=228"],
        couponList: [{
            id: 1,
            url: "http://img0.baidu.com/it/u=3924905353,1832758127&fm=253&app=138&f=JPEG?w=750&h=291",
        }, {
            id: 2,
            url: "http://img2.baidu.com/it/u=1822397536,372551330&fm=253&app=138&f=JPEG?w=500&h=228",
        }],
        active: 0,
        textareaForce: false,
        commentPlachold: '我来说几句',
    },
    onChange(e) {
        let { value } = e.detail
        this.setData({
            commentValue: value
        })
    },
    add(e){
        console.log(e);
        let id = e.currentTarget.dataset.id
        wx.navigateTo({
          url: '../index/index?id='+id,
        })
    },
})